package com.hexinfo.dmpro.monitor.model;

import com.hexinfo.dmpro.monitor.model.base.MonitorBaseModel;
import lombok.Data;

/**
 * @author peng
 * @date 2021/10/8 11:18
 */
@Data
public class YarnAppModel extends MonitorBaseModel {

    /**
     *
     */
    private String id;
    private String user;
    private String name;
    private String queue;
    private String applicationType;
    /**
     * NEW, NEW_SAVING, SUBMITTED, ACCEPTED, RUNNING, FINISHED, FAILED, KILLED
     */
    private String state;
    /**
     * UNDEFINED, SUCCEEDED, FAILED, KILLED
     */
    private String finalStatus;
    private String clusterId;
    private String startedTime;
    private String launchTime;
    private String finishedTime;
    private String elapsedTime;
    private String runningContainers;
    private String memorySeconds;
    private String vcoreSeconds;
    private Long allocatedVCores;
    private Long allocatedMB;
    private float queueUsagePercentage;
    private float clusterUsagePercentage;
    private String trackingUrl;

    /**
     * 机构
     */
    private String userunit;
    private String userunitId;
    private String createTime;

    //持续时间
    private String applicationDuration;
    //内存分配
    private String mbMillis;
    //写入的 HDFS 字节
    private String hdfsBytesWritten;
    //写入的文件字节
    private String fileBytesWritten;
    //读取的 HDFS 字节
    private String hdfsBytesRead;
    //读取的文件字节
    private String fileBytesRead;
    //cpu分配
    private String vcoresMillis;
    private String allocatedMBStr;
    private String taskTime;



}
